import React,{useEffect} from 'react';
import style from './TableHeaderContent1.module.less'; // Import the CSS module for styles
import { login,send_fs,send_fsjlpost } from "@/apis/user.js"
import { message } from 'antd'
import { useTranslation } from 'react-i18next'
const TableHeaderContent1 = (props) => {
  console.log(props,333)
  useEffect(() => {

		return ()=>{}
	  }, []);
  const getAdapter = ()=>{
		send_fsjlpost().then(res => {
			if (res.status.errorCode == 0) {
				message.info(res.status.msg)
			}else{
				message.info(res.status.msg)
			}
		})
	}
	const { t } = useTranslation();
  return (
    <React.Fragment>
    <div className={style['tableheader']}>
      <div className={style['tableheader_li']}>{t('rakebackget.title8')}</div>
      {/* <div className={style['tableheader_li']}>{t('rakebackget.title9')}</div> */}
      <div className={style['tableheader_li']}>{t('rakebackget.title10')}</div>
      <div className={style['tableheader_li']}>
        {/* {t('rakebackget.title11')} */}
        </div>
    </div>
    	<div className={style['tablebady']}>
        <div className={style['tablebadyul']}>
          <div className={style['tablebadyli']}>
            <span>{t('rakebackget.title12')}</span>
            {/* <span>2023-11-08</span> */}
            <span>{props.data || 0}</span>
            <span style={{color:'#fbc847'}} onClick={()=>{getAdapter()}}>{t('rakebackget.title11')}</span>
          </div>
          {/* <div className={style['tablebadyli']}>
            <span>0</span>
            <span>2023-11-07</span>
            <span>2023-11-07</span>
            <span>0</span>
          </div> */}
        </div>
    </div>
    </React.Fragment>
  );
};

export default TableHeaderContent1;